package com.wing.cabinet.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.CellInventoryInout;
import com.wing.cabinet.model.request.CellInventoryInoutForm;
import com.wing.cabinet.model.response.CellInventoryInoutApiVO;
import com.wing.cabinet.model.response.CellInventoryInoutVO;
import com.wing.cabinet.model.response.NeckNewExportVO;
import com.wing.cabinet.model.response.OldNeckNewExportVO;

import java.util.List;
import java.util.Map;

/**
 * 售刀柜上货(上货主表无展示)/领取-Service
 *
 * @author
 */
public interface CellInventoryInoutService extends IService<CellInventoryInout> {

    /**
     * 添加
     *
     * @param cellInventoryInoutForm
     * @return
     */
    int add(CellInventoryInoutForm cellInventoryInoutForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CellInventoryInoutVO> list4app(Map<String, Object> params);

    List<CellInventoryInoutVO> list(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CellInventoryInoutVO> pageList4app(Page page, Map<String, Object> params);
    Page<CellInventoryInoutVO> pageList(Page page, Map<String, Object> params);

    Page<CellInventoryInoutVO> pageList4OldNew(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CellInventoryInoutVO get4appById(Long id);

    Map<String, Integer> getCount();

    CellInventoryInoutVO get4appByInOutIdAndSkuCode(Long id, String skuCode);

    /**
     * 导出领用订单数据
     * @param params
     * @return
     */
    List<NeckNewExportVO> ecxportList(Map<String, Object> params);
    List<OldNeckNewExportVO> getOldNeckNewExportVOList(Map<String, Object> params);

    /**
     * 同步账单数据
     * @param ids
     */
    void syncBill(Integer[] ids);

    /**
     * 同步东江领新数据
     */
    void syncDjCellInventoryInoutData();

    /**
     * 对外api接口查询方法
     * @param params
     * @return
     */
    List<CellInventoryInoutApiVO> syncCellInventoryInoutList(Map<String, Object> params);

    /**
     * 领新记录（新）
     * @param page
     * @param params
     * @return
     */
    Page<CellInventoryInoutVO> pageListNew(Page page, Map<String, Object> params);
}
